import { defineStore } from 'pinia'
import { ref } from 'vue'


export const useRouterStore = defineStore('router', () => {
    const currentPage = ref({
        path: '/'
    })
    const newsCateList = ref({})
    const navList = ref({})
    return { currentPage, newsCateList, navList }
})

export const useIndexStore = defineStore('indexStore', () => {
    const sliderList = ref({})
    const indexStatistic = ref({})
    const tagList = ref({})
    const showLoading = ref(false)
    const themeColor = ref('#6c5dd3')
    const themeColors = ref(['#6c5dd3', '#ff9800', '#57a9fb', '#24a57f', '#fcd217', '#06bfad', '#993399', '#ef4136', '#4e5969', '#2538b1', '#9e7963', '#c792ea'])
    const audioList = ref([])
    const musicCurrentIndex = ref(null)
    const musicPlaying = ref(false)
    return { sliderList, indexStatistic, tagList, showLoading, themeColors, themeColor, audioList, musicCurrentIndex, musicPlaying }
})